/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 8/7/13
 * Time: 6:06 PM
 * To change this template use File | Settings | File Templates.
 */
package societyGames.codeAlong.model
{
import societyGames.xmlFragment.XMLFragment;
import societyGames.xmlFragment.XMLFragmentEditList;

public class Library extends XMLFragment
{
  override protected function getDefaultXML():XML
  {
    return _defaultXML;
  }

  [Bindable]
  [FragmentCollection(className="societyGames.codeAlong.model.Function", nodeName="function")]
  public var functions:XMLFragmentEditList;

  [Bindable]
  [FragmentCollection(className="societyGames.codeAlong.model.Class", nodeName="class")]
  public var classes:XMLFragmentEditList;

  private const _defaultXML:XML =
          <library>
            <function name="arrestAlex" description="Arrests Alex.">
              <return type="void"/>
              <parameter name="shouldArrest" index="1" type="Boolean" description="True to arrest Alex, false otherwise."/>
              <example>arrestAlex(true);</example>
            </function>
          </library>;
}
}
